{extend name="base" /}
{block name="body"}
<style>
    .layui-layout-admin .layui-footer {
        left: 0px !important;
    }

    .layui-body {
        left: 0px !important;
    }

    .layui-table td, .layui-table th {
        padding: 34px 33px;
        font-size: 50px;
    }
</style>
<div class="layui-body">
    <!--tab标签-->
    <div class="layui-tab layui-tab-brief">
        <div class="layui-tab-content">
            <hr>

            <form action="" method="post" class="ajax-form">
                <div class="layui-tab-item layui-show">
                    <table class="layui-table">
                        <thead>
                        <tr>
                            <th style="width: 30px;">ID</th>
                            <th>域名</th>
                            <th>操作</th>
                        </tr>
                        </thead>
                        <tbody>
                        {foreach name="domain_list" item="vo"}
                        <tr>
                            <td>{$vo.id}</td>
                            <td>{$vo.domain}</td>
                            <td>                         
                                <a class="layui-btn layui-btn-normal layui-btn-big" href="{:url('admin/order/index',['cid'=>$vo['id']])}">查看详情</a>
                            </td>
                        </tr>
                        {/foreach}
                        </tbody>
                    </table>
                    <!--分页-->
                    {$domain_list->render()}
                </div>
            </form>
        </div>
    </div>
</div>
{/block}
{block name="script"}
<script type="text/javascript">
    function select_link(cid){
        layer.open({
          title: '生成代码'
          ,area:'500px'
          ,content: 'http://polong.thepenis1.com/api/Order/getmsg/cid/'+cid
        });  
    }
</script>
{/block}